package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 全局配置类
 *
 * @author XiaoYi
 */
@Component
@ConfigurationProperties(prefix = "token")
public class Token {
    /**
     * 令牌自定义标识
     */
    private static String header;

    /**
     * 令牌秘钥 -- 未使用
     */
    private static String secret;

    /**
     * 令牌有效期（默认30分钟）
     */
    private static int expireTime;


    public static String getHeader() {
        return header;
    }

    public void setHeader(String header) {
        Token.header = header;
    }

    public static String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        Token.secret = secret;
    }

    public static int getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(int expireTime) {
        Token.expireTime = expireTime;
    }
}
